﻿using FluentModbus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunicationLib.Interface
{
    public class TcpMbServer : IMbServer
    {

        #region Fields
        private readonly ModbusTcpServer server;
        #endregion

        public TcpMbServer(ModbusTcpServer server) { 
            this.server = server;
        }
        public void Dispose()
        {
            this.server.Dispose();
        }
        public ModbusServer GetServerImpl()
        {
            return this.server;
        }
    }
}
